/*
 * @Descripttion:
 * @version:
 * @Date: 2021-04-20 11:06:21
 * @LastEditors: huzhushan@126.com
 * @LastEditTime: 2022-09-24 19:27:21
 * @Author: huzhushan@126.com
 * @HomePage: https://huzhushan.gitee.io/vue3-element-admin
 * @Github: https://github.com/huzhushan/vue3-element-admin
 * @Donate: https://huzhushan.gitee.io/vue3-element-admin/donate/
 */
// home.js
import CategoryBrand from "@/views/product/CategoryBrand.vue";
import ProductSpec from "@/views/product/ProductSpec.vue";

const Layout = () => import('@/layout/index.vue')
const Category = () => import('@/views/product/Category.vue')
const Brand = ()=> import("@/views/product/Brand.vue")
const Product = () => import("@/views/product/Product.vue")

export default [
    {
        path: '/product',
        component: Layout,
        name: 'product',
        meta: {
            title: '商品管理',
        },
        icon: 'Histogram',
        children: [
            {
                path: '/category',
                name: 'category',
                component: Category,
                meta: {
                    title: '分类管理',
                    affix: true,
                },
            },
            {
                path: '/brand',
                name: 'brand',
                component: Brand,
                meta: {
                    title: '品牌管理',
                    affix: true,
                },
            },
            {
                path: '/categoryBrand',
                name: 'categoryBrand',
                component: CategoryBrand,
                meta: {
                    title: '分类品牌',
                    affix: true,
                },
            },
            {
                path: '/productSpec',
                name: 'productSpec',
                component: ProductSpec,
                meta: {
                    title: '商品规格',
                    affix: true,
                },
            },{
                path: '/product',
                name: 'product',
                component: Product,
                meta: {
                    title: '商品列表',
                    affix: true,
                },
            },

        ],
    },
]
